package com.hehe.boot.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor //有参构造器
@NoArgsConstructor  //无参构造器
@TableName("diagnostic_drug") // 对应数据库表名
public class DiagnosticDrug {
    @TableField("diagnostic_id")
    @ApiModelProperty(value = "外键diagnostic_id")
    private Long diagnosticId;

    @TableField("drug_id")
    @ApiModelProperty(value = "外键drug_id")
    private Long drugId;

    @TableField("drug_number")
    @ApiModelProperty(value = "要求的药物数量")
    private Integer drugNumber;
}
